package com.juyu.miliao.api.util;

import com.juyu.miliao.api.domain.ActivityRewardLog;

import java.time.LocalDate;
import java.time.LocalDateTime;

public class ActivityRewardLogBuilder {

    private ActivityRewardLog activityRewardLog = new ActivityRewardLog();

    public ActivityRewardLogBuilder id(long id){
        activityRewardLog.setId(id);
        return this;
    }

    public ActivityRewardLogBuilder userId(long userId){
        activityRewardLog.setUserId(userId);
        return this;
    }

    public ActivityRewardLogBuilder deposit(long deposit){
        activityRewardLog.setDeposit(deposit);
        return this;
    }

    public ActivityRewardLogBuilder beans(long beans){
        activityRewardLog.setBeans(beans);
        return this;
    }

    public ActivityRewardLogBuilder type(int type){
        activityRewardLog.setType(type);
        return this;
    }

    public ActivityRewardLogBuilder createDate(LocalDate createDate){
        activityRewardLog.setCreateDate(createDate);
        return this;
    }

    public ActivityRewardLogBuilder createTime(LocalDateTime createTime){
        activityRewardLog.setCreateTime(createTime);
        return this;
    }

    public ActivityRewardLog build(){
        return activityRewardLog;
    }
}
